<?php
session_set_cookie_params(1800 , '/', '.aaa.com'); 
session_start();

if(!$_POST['username']){
    Header('location:/');
    exit();
}

$username = strip_tags(strtolower(trim($_POST['username'])));
if(md5('123456') != md5($_POST['password'])){
    Header('location:/');
    exit();
}

$_SESSION['username'] = $username;


//jump ,get phpsessid
Header('location:loginAll.php');